#{extends 'main.html' /}
#{set title:'new_user' /}

<h1>Register new user</h1>

#{form @saveUser()}
    #{field 'user.usermail'}
        <p class="${field.errorClass}">
            <strong>Username:</strong> <input type="text" name="${field.name}" size="16" value="${user?.usermail}"> *
            <span class="error">${field.error}</span>
        </p>
    #{/field}
    #{field 'user.name'}
        <p class="${field.errorClass}">
            <strong>Real name:</strong> <input type="text" name="${field.name}" size="16" value="${user?.name}"> *
            <span class="error">${field.error}</span>
        </p>
    #{/field}
    <p class="buttons">
        <input type="submit" value="Register"> <a href="@{index()}">Cancel</a>    
    </p>
#{/form}